<?php
namespace api\modules\v1\controllers;
use Yii;

use yii\base\Model;
use yii\filters\Cors;
use yii\helpers\ArrayHelper;
use yii\rest\ActiveController;

use yii\data\ActiveDataProvider;
/**
 * Country Controller API
 *
 * @author Budi Irawan <deerawan@gmail.com>
 */
class CountryController extends  ActiveController
{
    public $modelClass = 'api\modules\v1\models\Country';


    public function behaviors()
    {
        return ArrayHelper::merge(
            [['class' => Cors::className(),],], parent::behaviors());
    }

    public function  init(){
        parent::init();
//        echo 'hello this is ';
    }




}